<template>
  <div>
    <div class="swiper-container11">
      <div class="swiper-wrapper">
        <div class="swiper-slide" v-for="(e, i) in videot.feeds" :key="i">
          <!-- <img :src="`${e.shareInfo.img}`" alt="" /> -->
          <img v-lazy="e.shareInfo.img" :key="e.shareInfo.img"/>
          <p>{{ e.shareInfo.title }}</p>
          <i class="iconfont icon-shipin"></i>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import Swiper from "swiper";
export default {
  name: "videot",
  props: ["videot"],
  mounted() {
    console.log(this.videot);
    var mySwiper = new Swiper(".swiper-container11", {
      autoplay: false, //可选选项，自动滑动
      slidesPerView: 2,
      slidesPerGroup: 2,
      observer: true, //修改swiper自己或子元素时，自动初始化swiper
      observeParents: true, //修改swiper的父元素时，自动初始化swiper
    });
  },
};
</script>

<style lang="scss" scoped>
.swiper-container11 {
  .swiper-wrapper {
    .swiper-slide {
      img {
        width: 170px;
        height: 100px;
        border-radius: 7px;
        object-fit: cover;
      }
      p {
        width: 168px;
        text-align: center;
        font-size: 12px;
        color: #fff;
        position: absolute;
        left: 0;
        bottom: 5px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      i {
        display: inline-block;
        width: 30px;
        height: 30px;
        position: absolute;
        top: 50%;
        transform: translate(-350%, -50%);
        z-index: 99;
        font-size: 30px;
        color: #ccc;
      }
    }
  }
}
</style>